package com.example.rabbitmqconsumer.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author: wukangrong
 * @date: 2021/3/11 14:45
 * @description:
 */
@Component
public class Consumer {

    @RabbitHandler
    @RabbitListener(queues = "rabbit_queue_test")
    public void process(String msg) {
        System.out.println(msg);
    }
}
